package com.example.takeaway.serivce;

import com.example.takeaway.entity.Merchant;
import com.example.takeaway.utils.PageResult;

import java.util.List;


/**
 * merchantService接口
 * 
 * @author ruoyi
 * @date 2025-05-15
 */
public interface IMerchantService 
{
    /**
     * 查询merchant
     * 
     * @param merchantid merchant主键
     * @return merchant
     */
    public Merchant selectMerchantByMerchantid(Long merchantid);

    /**
     * 查询merchant列表
     * 
     * @param merchant merchant
     * @return merchant集合
     */
    public PageResult selectMerchantList(Merchant merchant, int pageNum, int pageSize);

    //搜索功能
    public PageResult search(String search,int pageNum,int pageSize);


    public List<Merchant> getMerGoodsList(Merchant merchant);
    /**
     * 新增merchant
     * 
     * @param merchant merchant
     * @return 结果
     */
    public int insertMerchant(Merchant merchant);

    /**
     * 修改merchant
     * 
     * @param merchant merchant
     * @return 结果
     */
    public int updateMerchant(Merchant merchant);

    /**
     * 批量删除merchant
     * 
     * @param merchantids 需要删除的merchant主键集合
     * @return 结果
     */
    public int deleteMerchantByMerchantids(Long[] merchantids);

    /**
     * 删除merchant信息
     * 
     * @param merchantid merchant主键
     * @return 结果
     */
    public int deleteMerchantByMerchantid(Long merchantid);
}
